package com.learn.aop.locator.support;

import com.learn.aop.config.ProxyProperties;
import com.learn.aop.locator.ProxyMetaDefinitionLocator;
import com.learn.aop.model.ProxyMetaDefinition;
import lombok.RequiredArgsConstructor;

import java.util.List;

/**
 * @description:    java类作用描述
 * @author:         MI
 * @email:          448341911@qq.com
 * @createTime:     2024/1/8 15:49
 * @updateUser:     cong zhi
 * @updateTime:     2024/1/8 15:49
 * @updateRemark:   修改内容
 * @version:        v1.0
 */
@RequiredArgsConstructor
public class PropertiesProxyMetaDefinitionLocator implements ProxyMetaDefinitionLocator {

    private final ProxyProperties properties;

    @Override
    public List<ProxyMetaDefinition> getProxyMetaDefinitions() {
        return properties.getMetaDefinitions();
    }
}
